electronjs require is not defined

322

electronjs require is not defined -

 webPreferences: {
      nodeIntegration: true,
      contextIsolation: false,
      enableRemoteModule: true,
    },

electron Uncaught ReferenceError: require is not defined at recorder.js:1 -

app.on('ready', () => {
    mainWindow = new BrowserWindow({
        webPreferences: {
            nodeIntegration: true
        }
    });
});

Comments

Submit
0 Comments